import axios from "axios";
const url = 'https://devapi.qweather.com/v7'
const key = '6e97fb3df2954b72a2a8a05682ce618b'
const location = '101280601'
// 获取当前天气
export const getWeatherNow = (data) => {
	return   axios({
        url: `${url}/weather/now?location=${location}&key=${key}`,
        method: "get",
      })
}
// 获取当前天气
export const getAirNow = (data) => {
	return   axios({
        url: `${url}/air/now?location=${location}&key=${key}`,
        method: "get",
      })
}